﻿using MTP.Dispatch;

using System.Net.Sockets;

namespace MTP
{
    public class MTPFactory
    {
        public static IDispatchServer CreateService(string cipher, AddressFamily addressFamily = AddressFamily.InterNetwork)
        {
            return new DispatchServer(System.Text.Encoding.ASCII.GetBytes(cipher), addressFamily);
        }

        public static IDispatchClient CreateClinet(string cipher, AddressFamily addressFamily = AddressFamily.InterNetwork)
        {
            return new DispatchClient(System.Text.Encoding.ASCII.GetBytes(cipher), addressFamily);
        }


    }
}
